package com.freesky.web.manager;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableEurekaClient
@EnableFeignClients
@EnableHystrixDashboard
@EnableCircuitBreaker
@SpringBootApplication
@EnableSwagger2
// 启动类必须加入@ServletComponentScan注解，否则无法扫描到servlet
@ServletComponentScan
@ComponentScan(basePackages = "com.freesky")
@MapperScan(basePackages = "com.freesky.common.dao.mapper")
public class ManagerWeb {
	public static void main(String[] args) {
		SpringApplication.run(ManagerWeb.class, args);
	}
}
